import {NestFactory} from '@nestjs/core';
import {AppModule} from './app.module';
import * as bodyParser from 'body-parser';

async function bootstrap() {
    const app = await NestFactory.create(AppModule);
    app.setGlobalPrefix('api')
    app.use(bodyParser.json({limit: '80mb'}));

    // 解析 URL 编码请求体，并设置大小限制为 10MB
    app.use(bodyParser.urlencoded({extended: true, limit: '80mb'}));
    await app.listen(3000);
}

bootstrap();
